package com.facemox.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.facemox.bean.FaceLink;
import com.facemox.bean.FaceLinkExecuteLog;
import com.facemox.mapper.LinkTestMapper;
import com.facemox.service.LinkTestService;

@Service
public class LinkTestServiceImpl implements LinkTestService {

    @Autowired
    private LinkTestMapper linkTestMapper;
    
    @Override
    public int addLinkTest(FaceLink faceLink) {
        int effectLine = linkTestMapper.addLinkTest(faceLink);
        return effectLine;
    }

    @Override
    public List<FaceLink> getLinkList() {
        List<FaceLink> faceLinkList = linkTestMapper.getLinkList();
        return faceLinkList;
    }

    @Override
    public List<FaceLink> getLinkListPage(Integer fromPage,Integer toPage) {
        List<FaceLink> faceListPage = linkTestMapper.getLinkListPage(fromPage,toPage);
        return faceListPage;
    }

    @Override
    public int getLinkListCount() {
        int totalCount = linkTestMapper.getLinkListCount();
        return totalCount;
    }

    @Override
    public FaceLink findLinkById(Integer linkId) {
        FaceLink faceLink = linkTestMapper.findLinkById(linkId);
        return faceLink;
    }

    @Override
    public int addFaceLinkExecuteLog(FaceLinkExecuteLog faceLinkExecuteLog) {
        int effectLine = linkTestMapper.addFaceLinkExecuteLog(faceLinkExecuteLog);
        return effectLine;
    }

    @Override
    public int deleteLinkById(Integer linkId) {
        int effectLine = linkTestMapper.deleteLinkById(linkId);
        return effectLine;
    }

    @Override
    public int updateLinkTest(FaceLink faceLink) {
        int effectLine = linkTestMapper.updateLinkTest(faceLink);
        return effectLine;
    }

}
